/*********************************************************************************
 *      Copyright:  (C) 2020 Tang Zhiqiang<t_zhiqiang@163.com>
 *                  All rights reserved.
 *
 *       Filename:  print_buf.c
 *    Description:  This file test buf byte stream data.
 *                 
 *        Version:  1.0.0(04/29/2020)
 *         Author:  Tang Zhiqiang <t_zhiqiang@163.com>
 *      ChangeLog:  1, Release initial version on "04/29/2020 03:53:52 PM"
 *                 
 ********************************************************************************/
#include <stdio.h>
#include "print_buf.h"

void print_buf(char *buf, int bytes)
{
    int     i;

    for(i=0; i<bytes; i++)
    {
        printf("0x%02x ", (unsigned char)buf[i]);
        if( 0 == (i+1)%16 )
            printf("\n");
    }

    printf("\n");
}

